define(function(require,exports,module){
	var Grid=require("grid-1.0.0");
	var columns=[{
		col:2,
		key:"totalCount",
		name:"总人数"
	},{
		col:2,
		key:"maleCount",
		name:"男"
	},{
		col:2,
		key:"femaleCount",
		name:"女"
	},{
		col:2,
		key:"eightyUpCount",
		name:"80岁以上"
	}];
	var SC_member_interview={
		init:function(widget,params){
			return new Grid({
				parentNode:".J-member-log",
				url:"api/shiftchange/querymember",
				params:function(){
					var param = {
						//typeIn:["Health","Life","Happy"],
						//"member.memberSigning.room.building.pkBuilding":params.type=="daytime" ? widget.get("subnav").getValue("building") :"",
						shiftChangeDate:params.startdate,
						//dateEnd:params.type=="daytime" ?params.enddate:params.enddate+8.5*60*60*1000,
						fetchProperties:"*"
					};
					return param;
				},
				model:{
					head:{
						title:"会员"
					},
					columns:columns
				},
				isInitPageBar: false,
			});
		},
		initPrint:function(widget,params){
			return new Grid({
				parentNode:".J-member-log-print",
				autoRender:false,
				isInitPageBar:false,
				model:{
					head:{
						title:"会员"
					},
					columns:columns
				},
			isInitPageBar: false,
			});
		}
	};
	
	module.exports=SC_member_interview;
});